package entity;

public class Employee {
    private String name;
    private int age;
    private String gw;
    public Employee() {}

    @Override
    public String toString() {
        return "Employee{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gw='" + gw + '\'' +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGw() {
        return gw;
    }

    public void setGw(String gw) {
        this.gw = gw;
    }

    public void show(){
        System.out.println("大家好，我是 "+this.gw+"岗位的" + name+",今年"+age+"岁");
    }
}
